<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>学生信息</title>
</head>
<body>
    <h1>学生信息列表</h1>
    {% if student_info %}
        <table border="1">
            <tr>
                <th>ID</th>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>班级ID</th>
                <th>宿舍号</th>
            </tr>
            {% for student in student_info %}
                <tr>
                    <td>{{ student.id }}</td>
                    <td>{{ student.name }}</td>
                    <td>{{ student.gender }}</td>
                    <td>{{ student.age }}</td>
                    <td>{{ student.class_id }}</td>
                    <td>{{ student.dormitory_number }}</td>
                </tr>
            {% endfor %}
        </table>
    {% else %}
        <p>没有找到学生信息。</p>
    {% endif %}
</body>
</html>
